package com.hockeo.shared.domain.transitory;

import com.extjs.gxt.ui.client.data.BeanModelTag;
import com.hockeo.shared.domain.AbstractDomain;

/**
 * Represents a local item in a navigation tree.
 *
 * @version $Id$
 * @author jjanke
 */
public class LocalTreeItem extends AbstractDomain<LocalTreeItem, String> implements BeanModelTag
{
  private String d_strId;
  private String d_strLabel;

  public LocalTreeItem()
  {
  }

  public LocalTreeItem( String strId, String strLabel )
  {
    d_strId = strId;
    d_strLabel = strLabel;
  }

  @Override
  public String getEntityName()
  {
    return "LocalTreeItem";
  }

  @Override
  public String getId()
  {
    return d_strId;
  }

  @Override
  protected Object[][] propertiesForToString()
  {
    return new Object[][] { { "label", d_strLabel } };
  }

  public String getLabel()
  {
    return d_strLabel;
  }
}
